package com.heima.utils.thread;

import com.heima.model.common.wemedia.pojos.WmUser;
//从header中获取当前用户存入线程

public class WmThreadLocalUtil {
    private  final  static ThreadLocal<WmUser> aaa = new ThreadLocal<>();

    public static  void  setUser(WmUser wmUser){
        aaa.set(wmUser);
    }

    public static  WmUser getUser(){
        return aaa.get();
    }

    public static  void  clear(){
        aaa.remove();
    }
}
